#include <54func.h>
int main()
{
    //创建了共享内存，就可以进行读写
    int shimd = shmget(0x1234,4096,IPC_CREAT|0600);
    ERROR_CHECK(shimd,-1,"shmget");
    printf("shimd = %d\n",shimd);
    int *p = (int *)shmat(shimd,NULL,0);//申请虚拟内存，边可以向*/[]去访问
    *p = 1234;
    return 0;
}
